<%@ page import="qin.com.Users" %>
<%@ page import="qin.com.UsersDao" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2024/6/19
  Time: 10:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    long id=Long.parseLong(request.getParameter("id"));
    Users users= UsersDao.getUsersById(id);
    out.print(users.getName());
    out.print(users.getPass());
%>
    <form action="users" method="post">
        <br>name:<input type="text" name="name" value="<%=users.getName()%>" />
        <br>pass:<input type="password" name="pass"  value="<%=users.getPass()%>"/>
        <input type="hidden" name="action" value="update">
        <br>name:<input type="submit" value="更新用户" />
    </form>

</body>
</html>
